import ParentHome from './views/parent/Home'
import ParentCourse from './views/parent/course/Course'
import ParentFilter from './views/parent/course/Filter'
import ParentList from './views/parent/course/List'
import ParentDetail from './views/parent/course/Detail'
import ParentCourseMaterial from './views/parent/course/CourseMaterial'
import ParentShare from './views/parent/course/Share'
import ParentManage from './views/parent/course/Manage'
import ParentAfterClass from './views/parent/course/AfterClass'
import ParentReport from './views/parent/course/Report'
import ParentHomework from './views/parent/course/Homework'
import ParentSummary from './views/parent/course/Summary.vue'
import ParentSign from './views/parent/course/Sign'
import ParentSignUp from './views/parent/course/SignUp'
import ParentPay from './views/parent/course/Pay'
import ParentUCenter from './views/parent/UCenter'
import SignUpSuccess from './views/parent/course/SignUpSuccess'

import ReaderFilter from './views/parent/course/ReaderFilter'
import ReaderList from './views/parent/course/ReaderList'
import ReaderDetail from './views/parent/course/ReaderDetail'
import ReaderFavorite from './views/parent/course/ReaderFavorite'

import LearnFilter from './views/parent/course/LearnFilter'
import LearnList from './views/parent/course/LearnList'
import LearnDetail from './views/parent/course/LearnDetail'
import MyLearn from './views/parent/course/MyLearn'
import LearnAfter from './views/parent/course/LearnAfter'
import LearnHomework from './views/parent/course/LearnHomework'
import LearnReport from './views/parent/course/LearnReport.vue'

import Coupon from './views/parent/coupon/Coupon'
import Convert from './views/parent/coupon/Convert'
import MyCoupon from './views/parent/coupon/MyCoupon'

// import Listen from './views/parent/listen/Listen'
// import ListenMatch from './views/parent/listen/Match'
// import ListenRecord from './views/parent/listen/Record'
// import ListenBandDetails from './views/parent/listen/BandDetails'
// import ListenCompleted from './views/parent/listen/completed'
// import ListenAudition from './views/parent/listen/Audition'
// import ListenAuditVoice from './views/parent/listen/AuditVoice'
// import ListenNewVoice from './views/parent/listen/NewVoice'
// import ListenLibraryList from './views/parent/listen/LibraryList'
// import ListenPayment from './views/parent/listen/Payment'
// import ListenYetVoice from './views/parent/listen/YetVoice'

import Agency from './views/agency/Agency'
import AgencyPerson from './views/agency/Person'
// import AgencyCompile from './views/agency/Compile'
import AgencySummary from './views/agency/Summary'
// import AgencyAddMaterial from './views/agency/AddMaterial'
import AgencyPreview from './views/agency/Preview'
import AgencyShowList from './views/agency/ShowList'
import AgencyUser from './views/agency/User'
import AgencyCourse from './views/agency/Course'
// import AgencyInclass from './views/agency/Inclass'
import AgencyCourseMaterial from './views/agency/CourseMaterial'
import AgencyMaterial from './views/agency/Material'
import AgencyAddMaterial from './views/agency/AddMaterial'
import AgencyEditMaterial from './views/agency/EditMaterial'
import AgencyQRCode from './views/agency/QRCode'
import AgencyApply from './views/agency/Apply'
import AgencyCheck from './views/agency/Check'

module.exports = [{
  name: 'parent',
  path: '/',
  component: ParentHome
}, {
  name: 'parentHome',
  path: '/parent/home',
  component: ParentHome
}, {
  name: 'parentUcenter',
  path: '/parent/ucenter',
  component: ParentUCenter
}, {
  name: 'coupon',
  path: '/parent/coupon',
  component: Coupon,
  children: [{
    path: 'convert',
    component: Convert
  }, {
    path: 'my_coupon',
    component: MyCoupon
  }]
}, {
  name: 'user',
  path: '/parent/user',
  component: require('./views/parent/user/User.vue'),
  children: [{
    path: 'grow',
    component: require('./views/parent/user/Grow.vue')
  }, {
    path: 'report_list',
    component: require('./views/parent/user/ReportList.vue')
  }, {
    path: 'report/:month',
    component: require('./views/parent/user/Report.vue')
  }, {
    path: 'rule',
    component: require('./views/parent/user/Rule.vue')
  }]
}, {
  path: '/parent/course',
  component: ParentCourse,
  children: [{
    path: 'filter/:filter',
    component: ParentFilter
  }, {
    path: 'list/:filter',
    component: ParentList
  }, {
    path: 'detail/:id',
    component: ParentDetail
  }, {
    name: 'parentCourseMaterial',
    path: 'course_material/:id',
    component: ParentCourseMaterial
  }, {
    path: 'share',
    component: ParentShare
  }, {
    path: 'manage',
    component: ParentManage
  }, {
    path: 'manage/:tab',
    component: ParentManage
  }, {
    path: 'after_class/:id',
    component: ParentAfterClass
  }, {
    name: 'parentHomework',
    path: 'homework/:id',
    component: ParentHomework
  }, {
    name: 'parentSummary',
    path: 'summary/:id',
    component: ParentSummary
  }, {
    path: 'sign/:id',
    component: ParentSign
  }, {
    path: 'report/:id',
    component: ParentReport
  }, {
    path: 'sign_up/:id/:channelId',
    component: ParentSignUp
  }, {
    path: 'sign_up_success',
    component: SignUpSuccess
  }, {
    path: 'sign_up/:id',
    component: ParentSignUp
  }, {
    path: 'pay/:id',
    component: ParentPay
  }, {
    path: 'reader_filter/:filter',
    component: ReaderFilter
  }, {
    path: 'reader_list/:filter',
    component: ReaderList
  }, {
    path: 'reader_detail/:id',
    component: ReaderDetail
  }, {
    path: 'reader_favorite',
    component: ReaderFavorite
  }, {
    path: 'learn_filter',
    component: LearnFilter
  }, {
    path: 'learn_list/:filter',
    component: LearnList
  }, {
    path: 'learn_detail/:id',
    component: LearnDetail
  }, {
    path: 'my_learn/:tab',
    component: MyLearn
  }, {
    path: 'my_learn',
    component: MyLearn
  }, {
    path: 'learn_after/:id',
    component: LearnAfter
  }, {
    name: 'learnHomework',
    path: 'learn_homework/:id',
    component: LearnHomework
  }, {
    name: 'learnReport',
    path: 'learn_report/:id',
    component: LearnReport
  }]
},
  // '/parent/listen': {
  //   component: Listen,
  //   subRoutes: {
  //     '/match': {
  //       component: ListenMatch
  //     },
  //     '/record': {
  //       component: ListenRecord
  //     },
  //     '/band_details': {
  //       component: ListenBandDetails
  //     },
  //     '/completed': {
  //       component: ListenCompleted
  //     },
  //     '/yet_voice': {
  //       component: ListenYetVoice
  //     },
  //     '/payment': {
  //       component: ListenPayment
  //     },
  //     '/library_list': {
  //       component: ListenLibraryList
  //     },
  //     '/new_voice': {
  //       component: ListenNewVoice
  //     },
  //     '/audit_voice': {
  //       component: ListenAuditVoice
  //     },
  //     '/audition': {
  //       component: ListenAudition
  //     }
  //   }
  // },
{
  component: Agency,
  path: '/agency',
  children: [{
    path: 'person',
    component: AgencyPerson
  }, {
    path: 'edit_material/:id',
    component: AgencyEditMaterial
  }, {
    path: 'add_material',
    component: AgencyAddMaterial
  }, {
    path: 'course_material/:id',
    component: AgencyCourseMaterial
  }, {
    path: 'summary/:id',
    component: AgencySummary
  }, {
    path: 'material',
    component: AgencyMaterial
  }, {
    path: 'preview/:id',
    component: AgencyPreview
  }, {
    path: 'show_list/:id',
    component: AgencyShowList
  }, {
    path: 'user/:id',
    component: AgencyUser
  }, {
    path: 'course',
    component: AgencyCourse
  }, {
    path: 'qrcode/:id',
    component: AgencyQRCode
  }, {
    path: 'apply',
    component: AgencyApply
  }, {
    path: 'check',
    component: AgencyCheck
  }]
}]
